<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="pragram" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache, must-revalidate"/>
    <meta http-equiv="expires" content="0"/>
    <meta name="renderer" content="webkit"/>
    <title>财务结算管理</title>

    <link rel="stylesheet" href="/assets/css/lib/bootstrap.min.css">
    <link rel="stylesheet" href="/assets/css/lib/pagination.css">

    <link rel="stylesheet" href="/assets/css/common.css">
    <link rel="stylesheet" href="/assets/css/financial_manage.css">

</head>
<body>
<div  id="cms">

    <jsp:include page="title_bar.jsp"/>
    <jsp:include page="tab_bar.jsp"/>
    <div class="cms-content">
        <div class="current-place">
            <div class="place-title">当前位置:</div>
            <div class="place-val">首页/财务结算管理</div>
        </div>
        <div class="cms-container">
            <div class="pagination-box clearfix">
                <div class="pagination-unit pagination-unit-active">律师提现申请</div>
                <div class="pagination-unit">客户充值记录</div>
            </div>
            <div class="slider-box">
                <div class="slider-container clearfix">
                    <div class="slider-unit">
                        <div class="seek-box">
                            <div class="common-title">
                                <div class="common-left-line"></div>
                                <div class="common-text">条件查询</div>
                            </div>
                            <div class="seek-content">
                                <form id="search_lawyer_tx">
                                <div class="seek-group">
                                    <div class="seek-unit">
                                        <span class="seek-unit-left">律师姓名</span>
                                        <div class="seek-unit-right">
                                            <input type="text" name="lawyername" class="form-control lawyer-name">
                                        </div>
                                    </div>
                                    <div class="seek-unit">
                                        <span class="seek-unit-left">律师手机号码</span>
                                        <div class="seek-unit-right">
                                            <input type="text" name="lawyerphone" class="form-control lawyer-phone-num">
                                        </div>
                                    </div>
                                    <div class="seek-unit">
                                        <span class="seek-unit-left">提现时间</span>
                                        <div class="seek-unit-right">
                                            <input type="text" name="beginTime" class="Wdate " id="withdraw-cash-start"/>
                                            <span>-</span>
                                            <input type="text" name="endTime" class="Wdate " id="withdraw-cash-end"/>
                                        </div>
                                    </div>
                                    <div class="seek-unit">
                                        <span class="seek-unit-left">处理结果</span>
                                        <div class="seek-unit-right">
                                            <select class="form-control" name="txStats">
                                                <option value="">全部</option>
                                                <option value="0">待处理</option>
                                                <option value="1">已处理</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="seek-unit">
                                        <div class="seek-unit-left lawyer-seek-btn seek-btn" onclick="search_lawyertx()">
                                            搜索
                                        </div>
                                    </div>

                                    <div class="seek-unit">
                                        <div class="seek-unit-left lawyer-seek-btn seek-btn" onclick="excel_lawyertx()"  >
                                            导出Excel
                                        </div>
                                    </div>

                                </div>
                                </form>
                            </div>
                        </div>
                        <div class="table-box">
                            <table class="table table-bordered" id="lawyer_tx_table">
                                <thead>
                                <tr>
                                    <th></th>
                                    <th>律师姓名</th>
                                    <th>手机号</th>
                                    <th id="lawyer_sequence" class="withdraw-cash-time sequence isup">
                                        <span>提现申请时间</span>
                                        <img src="/assets/images/up.png" class="up">
                                        <img src="/assets/images/down.png" class="down">
                                        <img src="/assets/images/default_status.png" class="default">
                                    </th>
                                    <th>提现金额</th>
                                    <th>持卡人姓名</th>
                                    <th>卡号</th>
                                    <th>银行名称</th>
                                    <th>开户行全称</th>
                                    <th>处理结果</th>
                                    <th>回执单号</th>
                                    <th>备注</th>
                                    <th>处理时间</th>
                                </tr>
                                </thead>
                                <tbody id="lawyertxlist">

                                </tbody>
                                <script type="text/html" id="lawyertxlist_tmpl">

                                    <!for(k in result){!>

                                    <tr>
                                        <td><input type="checkbox" class="lawyer-check-unit"/></td>
                                        <td><!=result[k].lawyername!></td>
                                        <td><!=result[k].lawyer_phone!></td>
                                        <td><!=backLawTime(result[k].txsq_time)!></td>
                                        <td><!=back_money_handler(result[k].tx_money/100)!></td>
                                        <td><!=result[k].tx_name!></td>
                                        <td><!=result[k].tx_bankcard!></td>
                                        <td><!=result[k].tx_bank!></td>
                                        <td><!=result[k].tx_bank_area!></td>
                                        <td><!=result[k].tx_stats==0?'待处理':'已处理'!></td>
                                        <td><!=result[k].return_num!></td>
                                        <td><!=result[k].remak!></td>
                                        <td>



                                            <!if(result[k].tx_stats==0){!>

                                                <!if(role==0){!>

                                                <div class="handle-btn" onclick="open_handle_page(<!=result[k].tx_id!>)">处理</div>

                                                <!}!>

                                            <!}else{!>

                                             <!=backLawTime(result[k].update_time)!>

                                            <!}!>



                                        </td>
                                    </tr>

                                    <!}!>


                                </script>
                            </table>

                            <div class="table-bottom clearfix">
                                <div class="lawyer-check-all">
                                    <input type="checkbox" id="lawyer-check-all">
                                    <label for="lawyer-check-all">全选</label>
                                </div>
                                <div class="seek-unit-right lawyer-derive-excel seek-derive" name="roleMenu"
                                     style="display: none"
                                     onclick="exportEXCEL('lawyer_tx_table','律师提现记录')">
                                    导出EXCEL
                                </div>
                                <div id="Pagination" class="pagination"><!-- 这里显示分页--></div>
                            </div>
                        </div>
                    </div>
                    <div class="slider-unit">
                        <div class="seek-box">
                            <div class="common-title">
                                <div class="common-left-line"></div>
                                <div class="common-text">条件查询</div>
                            </div>

                            <form id="search_pay_flowno">
                            <div class="seek-content">
                                <div class="seek-group">
                                    <div class="seek-unit">
                                        <span class="seek-unit-left">用户手机号码</span>
                                        <div class="seek-unit-right">
                                            <input type="text" name="uphone" class="form-control client-phone-num">
                                        </div>
                                    </div>
                                    <div class="seek-unit">
                                        <span class="seek-unit-left">充值时间</span>
                                        <div class="seek-unit-right">
                                            <input type="text" name="beginTime"  class="Wdate " id="top-up-start"/>
                                            <span>-</span>
                                            <input type="text" name="endTime" class="Wdate " id="top-up-end"/>
                                        </div>
                                    </div>
                                    <div class="seek-unit">
                                        <span class="seek-unit-left">充值状态</span>
                                        <div class="seek-unit-right">
                                            <select class="form-control" name="orderPayState">
                                                <option value="">全部</option>
                                                <option value="0">成功</option>
                                                <option value="1">支付中</option>
                                                <option value="2">失败</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="seek-unit">
                                        <div class="seek-unit-right  client-seek-btn seek-btn" onclick="search_payflowno()">搜索</div>
                                    </div>

                                    <div class="seek-unit">
                                        <div class="seek-unit-right  client-seek-btn seek-btn" onclick="excel_payflowno()">导出Excel</div>
                                    </div>
                                </div>
                            </div>
                            </form>


                        </div>
                        <div class="table-box lawyer-table">
                            <table class="table table-bordered" id="pay_flowno_table">
                                <thead>
                                <tr>
                                    <th style="min-width: 40px"></th>
                                    <th style="min-width: 50px">序号</th>
                                    <th>用户姓名</th>
                                    <th>用户ID</th>
                                    <th>手机号</th>
                                    <th  id="pay_sequence" class="top-up-time sequence isup " style="min-width: 80px;">
                                        <span>充值时间</span>
                                        <img src="/assets/images/up.png" class="up">
                                        <img src="/assets/images/down.png" class="down">
                                        <img src="/assets/images/default_status.png" class="default">
                                    </th>
                                    <th id="pay_sequence2" class="start-efficacy-time sequence " style="min-width: 80px;">
                                        <span>起始效期</span>
                                        <img src="/assets/images/up.png" class="up">
                                        <img src="/assets/images/down.png" class="down">
                                        <img src="/assets/images/default_status.png" class="default">
                                    </th>
                                    <th id="pay_sequence3" class="end-efficacy-time sequence " style="min-width: 80px;">
                                        <span>终止效期</span>
                                        <img src="/assets/images/up.png" class="up">
                                        <img src="/assets/images/down.png" class="down">
                                        <img src="/assets/images/default_status.png" class="default">
                                    </th>
                                    <th>卡券分类</th>
                                    <th>卡券/产品名称</th>
                                    <th>卡券SN</th>
                                    <th>渠道SN</th>
                                    <th>面值</th>
                                    <th>定价(元)</th>
                                    <th>发行方</th>
                                   <!-- <th>购买数量</th> -->
                                    <th>充值状态</th>
                                    <th style="min-width: 100px;">实付金额(元)</th>
                                    <th>支付方式</th>
                                </tr>
                                </thead>
                                <tbody id="payflownolist"></tbody>

                                <script type="text/html" id="payflownolist_tmpl">


                                    <!var i=0; for(k in result){ i++;!>

                                        <tr >
                                            <td><input type="checkbox" class="client-check-unit"/></td>
                                            <td><!=i+((pageNum2-1)*10)!></td>
                                            <td><!=result[k].uname!></td>
                                            <td><a href="/user/showDetail?uid=<!=result[k].userid!>"><!=result[k].userid!> </a></td>
                                            <td><!=result[k].uphone!></td>
                                            <td><!=backLawTime(result[k].order_time)!></td>
                                            <td><!=backLawTime(result[k].sku_star_time)!></td>
                                            <td><!=backLawTime(result[k].sku_end_time)!></td>
                                            <td><!=result[k].sku_type==3?'通用充值卡S':''!></td>
                                            <td><!=result[k].skuname==null?'':result[k].skuname!>/<!=result[k].pro_name==null?'':result[k].pro_name!></td>
                                            <td><!=result[k].skusn==null?'':result[k].skusn.split('-')[0]!></td>
                                            <td><!=result[k].skusn==null?'':result[k].skusn.split('-')[1]!></td>
                                            <!--面值-->
                                            <td><!=back_money_handler(result[k].skutoprice==null?result[k].order_price/100:result[k].skutoprice/100)!></td>
                                            <!--定价-->
                                            <td><!=back_money_handler(result[k].skudeprice==null?result[k].order_price/100:result[k].skudeprice/100)!></td>
                                            <td><!=result[k].sku_publish!></td>
                                         <!--   <td><!=result[k].lawyername!></td>-->
                                            <td><!=result[k].order_pay_state==0?'成功':(result[k].order_pay_state==1?'支付中':'失败')!></td>
                                            <td><!=back_money_handler(result[k].order_price/100)!></td>
                                            <td><!=result[k].pay_type==1?'支付宝':'微信'!></td>

                                        </tr>

                                    <!}!>

                                </script>

                            </table>

                            <div class="table-bottom clearfix">
                                <div class="client-check-all">
                                    <input type="checkbox" id="client-check-all">
                                    <label for="client-check-all">全选</label>
                                </div>
                                <div class=" seek-derive client-seek-derive" name="roleMenu" onclick="exportEXCEL('pay_flowno_table','用户充值记录')">
                                    导出EXCEL
                                </div>

                                <div id="Pagination1" class="pagination"><!-- 这里显示分页--></div>
                                <span id="totalmoney">
                                </span>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>

<div class="cms-modal-lg" id="handle-pop">
    <div class="cms-modal-dialog">
        <div class="cms-modal-title">提现申请处理</div>
        <form id="edit_handle">
        <div class="cms-madal-content">
            <!--
          <div class="choose-box">

              <input type="radio" id="handled" name="handle"><label for="handled">已处理</label>
              <input type="radio" id="refuse" name="handle"><label for="refuse">被驳回</label>


            </div>
             -->


            <div class="seek-unit">
                <span class="seek-unit-left">回执单号</span>
                <div class="seek-unit-right">
                    <input type="text" name="returnNum"  class="form-control lawyer-phone-num required digits">
                </div>
            </div>
             <br/>
            <textarea placeholder="请输入备注" name="remak" class="common-remark required" maxlength="200"></textarea>
            <div class="limit200">限200字</div>
        </div>
        </form>
        <div class="cms-modal-bottom clearfix">
            <button type="button" class="cms-confirm handle-confirm">确定</button>
            <button type="button" class="cms-cancel handle-cancel">取消</button>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="/assets/js/lib/jquery-1.12.3.js"></script>
<script type="text/javascript" src="/assets/js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="/assets/js/lib/modal.js"></script>
<script type="text/javascript" src="/assets/js/lib/cmsmodal.js"></script>

<script type="text/javascript" src="/assets/js/lib/distpicker.data.js"></script>
<script type="text/javascript" src="/assets/js/lib/distpicker.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.pagination.js"></script>

<script type="text/javascript" src="/assets/js/lib/My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript" src="/assets/js/lib/jquery.validate.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.validate.messages_cn.js"></script>

<script type="text/javascript" src="/assets/js/export/table2excel.js"></script>
<!--<script type="text/javascript" src="/assets/js/export/tableExport.js"></script>-->
<!--<script type="text/javascript" src="/assets/js/export/jquery.base64.js"></script>-->

<script type="text/javascript" src="/assets/js/common.js"></script>
<script type="text/javascript" src="/assets/js/communal/template.js"></script>

<script type="text/javascript" src="/assets/js/financial_manage.js"></script>
</html>